package com.oschina;

/**
 * @author zhouyang
 * @Date 2017-08-20 11:41
 * @Description
 * @Version 1.0
 */
public class SessionManagerFactory {

    public static SessionManager createSessionManager(SessionManagerType sessionManagerType){
        switch (sessionManagerType){
            case WEB_SESSION_MANAGER:
                return new WebSessionManager();
            case REDIS_SESSION_MANAGER:
                return new RedisSessionManager();
            default:
                return new WebSessionManager();
        }
    }

}
